<extend name="Public/base" />

<block name="body">
    <style>
        .table2{border: 1px solid #000;}
        .table2 tr th{
            background-color: #F5F5F5;
            font-size: 15px;
            font-weight: normal;
            border: 1px solid #000;
            padding-left: 5px;
        }
        .table2 tr td{
            border: 1px solid #000;
            padding-left: 5px;
            font-weight: bold;
        }   
    </style>
    
    
    <!------左边E------>
    <div class="printpage " style='min-height: 27.5cm; max-height: 27.5cm; margin: 0 15px;' >
        <div class="data-table table-striped">    
        <table width="50%" border="0" class="table2 table-condensed ">
            <div class="row" style=" background: #353535;color: #fff; height: 30px;line-height: 30px;text-align: left;">
                <div class="col-xs-5"> 订单详情</div>          
            </div>
        <br>
            <tr>
                <td colspan="4">订单编号:{$order.orderid}</td>                             
            </tr>
                <th width="20%">订单属区:</th>
                <td width="30%">{$order.areaId|get_area_name}</td>
                <th width="20%">订单状态:</th>
                <td width="30%">{$order.status|get_order_status}</td>
            </tr>
            <tr>
                <th width="20%">订单原价:</th>
                <td style="color: red;font-size: 20px;">￥&nbsp;{$order.amount|number_format=###,2}&nbsp;元</td>
                <th width="20%">实付金额:</th>
                <td style="color: red;font-size: 20px;">￥&nbsp;{$order.finalAmount|number_format=###,2}&nbsp;元</td>
            </tr>
            <tr>
                <th width="20%">付款方式:</th>
                <td width="30%">{$order.payway}</td>
                <th width="20%">支付详情:</th>
                <td width="30%">{$order.payDetails}</td>
            </tr>
            <tr>
                <th width="20%">收货人:</th>
                <td width="30%">{$order.toName}</td>
                <th width="20%">联系电话:</th>
                <td width="30%">{$order.toPhone}</td>
            </tr>
            <tr>
                <th width="20%">收货地址:</th>
                <td width="30%">{$order.toProvince}-{$order.toCity}-{$order.toArea}-{$order.toStreet}</td>
                <th width="20%">买家:</th>
                <td width="30%">{$order.uid|get_user_name}</td>
            </tr>
            <tr>
                <th width="20%">下单时间:</th>
                <td width="30%">{$order.createDate|time_format}</td>
                <th width="20%">支付时间:</th>
                <td width="30%">{$order.payTime|time_format}</td>
            </tr>
            <tr>
                <th width="20%">发货时间:</th>
                <td width="30%">{$order.sendTime|time_format}</td>
                <th width="20%">收货时间:</th>
                <td width="30%">{$order.takeTime|time_format}</td>
            </tr>
            <tr>
                <th width="20%">是否自提:</th>
                <td width="30%">
                    {$order.isSince|get_bool}
                </td>
                <th width="20%">订单发票:</th>
                <td width="30%">{$order.invoice}</td>
            </tr>
             <tr>
                <th width="20%">是否导出过:</th>
                <td width="30%">
                    {$order.isExport|get_bool}
                </td>
                <th width="20%">小票是否打印过:</th>
                <td width="30%">
                    {$order.isPrint|get_bool}
                </td>
            </tr>
            <tr>
                <th>当天订单序号:</th>
                <td colspan="3"> {$order.serialNo}</td>
            </tr>
            <tr>
                <th>订单用户备注:</th>
                <td colspan="3"> {$order.remark}</td>
            </tr>
        </table>
    </div>
        
        <div class="row" style=" background: #353535;color: #fff; height: 30px;line-height: 30px;text-align: left;">
            <div class="col-xs-5"> 商品清单</div>          
        </div>
        <br>
        <div class="row">
            <div class="col-xs-6">
                <table width="100%" border="0" class="table2 table-condensed ">
                    <tr >
                        <th scope="col"  width="20%">ID</th>
                        <th scope="col"  width="20%">商品名称</th>
                        <th scope="col">单价</th>
                        <th scope="col">数量</th>
                        <th scope="col">总价</th>
                    </tr>

                    <volist name="order.order_goods" id="vs"> 
                        <tr>   
                            <td > 
                                <b>{$i}</b>
                            </td>
                            <td> 
                                <b>{$vs.pid}</b>                         
                            </td>
                            <td> 
                                <b>{$vs.price}</b>                         
                            </td>
                            <td> 
                                <b>{$vs.cartnum}</b>                         
                            </td>
                            <td> 
                                <b>{$vs.totalprice}</b>                         
                            </td>
                        </tr>
                    </volist>
                </table>
                <div class="text-right">
                    <br/>
                    <button class="btn btn-return" onclick="javascript:history.back(-1); return false;">返 回</button>
                </div>
            </div>
        </div>
    </div>
</block>


<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('GroupPurchase/order')}');
    </script>
</block>